<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			body {
				perspective: 800px;
			}
			.home {
				width: 500px;
				height: 500px;
				border: 1px solid #000;
				margin: 100px auto;
				position: relative;
				transform-style: preserve-3d;
			}
			.home:hover {
				animation: rotate 4s 1;
			}
			@keyframes rotate {
				0% {
					transform: rotateY(0deg);
				}
				50% {
					transform: rotateY(180deg);
				}
				100% {
					transform: rotateY(360deg);
				}
			}
			.home div {
				position: absolute;
				left: 30%;
				top: 30%;
				width: 200px;
				height: 200px;
				/*border: 1px solid #000;*/
			}
			.home div:nth-child(0) {
				background-color: rgba(0,0,0,0.3);
				transform: translateZ(100px)
			}
			.home div:nth-child(1) {
				background-color: rgba(0,0,0,0.3);
				transform: translateZ(-100px)
			}
			.home div:nth-child(2) {
				background-color: rgba(0,0,0,0.3);
				transform: translateY(-100px) rotateX(90deg);
			}
			.home div:nth-child(3) {
				background-color: rgba(0,0,0,0.3);
				transform: translateY(100px) rotateX(-90deg);
			}
			.home div:nth-child(4) {
				position: relative;
				background-color: rgba(0,0,0,0.3);
				transform: translateX(-100px) rotateY(90deg);
			}
			.home div:nth-child(4):after {
				content: '66666666666666666',
			}
			.home div:nth-child(5) {
				background-color: rgba(0,0,0,0.3);
				transform: translateX(100px) rotateY(-90deg);
			}
			.home div:nth-child(6) {
				width: 240px;
				background-color: rgba(0,0,0,0.3);
				transform-origin: top;
				transform: translateY(-100px) translateX(-20px) rotateX(45deg);
			}
			.home div:nth-child(7) {
				width: 240px;
				background-color: rgba(0,0,0,0.3);
				transform-origin: top;
				transform: translateY(-100px)  translateX(-20px)  rotateX(-45deg);
			}
			/*.home div:nth-child(8) {
				background-color: rgba(0,0,0,0.3);
				transform-origin: left;
				transform: rotateY(90deg);
			}
			.home div:nth-child(9) {
				background-color: rgba(0,0,0,0.3);
				transform: translateZ(100px);
			}*/
		</style>
	</head>
	<body>
		<div class="home">
			<div></div>
			<div></div>
			<div></div>
			<div></div>
			<div></div>
			<div></div>
			<div></div> 
			<div></div><!--
			<div></div> -->
		</div>
	</body>
</html>
